package com.szholly.pro.watergas_server.ps.android.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.szholly.pro.watergas_server.ps.android.service.SurfaceService;

@Controller
@RequestMapping("/android/surface/*")
public class AndroidSurfaceController {
	@Autowired
	SurfaceService mSurfaceService;
	@RequestMapping("/getSurfaceOperation")
	@ResponseBody
	public String getDailyCheckItem() throws Exception{
		return mSurfaceService.getDailyCheckItem();
	}
	@RequestMapping("/getDailyCheckdetail")
	@ResponseBody
	public String getDailyCheckdetail(String tableName, String taskCode){
		return  mSurfaceService.getDailyCheckdetail(tableName,taskCode);
		
	}	
	@RequestMapping("/getEquipmentRepairdetail")
	@ResponseBody
	public String getEquipmentRepairdetail(String tableName, String taskCode){
		return  mSurfaceService.getEquipmentRepairdetail(tableName,taskCode);
		
	}
	@RequestMapping("/getSignIn")
	@ResponseBody
	public String getSignIn(String userName, String scId){
		return  mSurfaceService.getSignIn(userName,scId);
		
	}
	@RequestMapping("/getSurfaceDetailStandardReplace")
	@ResponseBody
	public String getSurfaceDetailStandardReplace(String tableName, String taskCode){
		return  mSurfaceService.getSurfaceDetailStandardReplace(tableName,taskCode);
		
	}
	@RequestMapping("/getSurfaceDetailReplacementReplace")
	@ResponseBody
	public String getSurfaceDetailReplacementReplace(String tableName, String taskCode){
		return  mSurfaceService.getSurfaceDetailReplacementReplace(tableName,taskCode);
		
	}
	@RequestMapping("/getSurfaceStandardCheckDetail")
	@ResponseBody
	public String getSurfaceStandardCheckDetail(String tableName, String taskCode, String stationId){
		return  mSurfaceService.getSurfaceStandardCheckDetail(tableName,taskCode,stationId);
		
	}
	@RequestMapping("/updateSurfaceDailyCalibration")
	@ResponseBody
	public String updateSurfaceDailyCalibration(String mapList){
		return  mSurfaceService.updateSurfaceDailyCalibration(mapList);
		
	}
	@RequestMapping("/updateStandardCheckDate")
	@ResponseBody
	public String updateStandardCheckDate(String mapList){
		return  mSurfaceService.updateStandardCheckDate(mapList);
		
	}
	@RequestMapping("/updateWaterContrastData")
	@ResponseBody
	public String updateWaterContrastData(String mapList){
		return  mSurfaceService.updateWaterContrastData(mapList);
		
	}
	@RequestMapping("/updateStandardReplace")
	@ResponseBody
	public String updateStandardReplace(String mapList){
		return  mSurfaceService.updateStandardReplace(mapList);
		
	}
	@RequestMapping("/updateReplacementReplace")
	@ResponseBody
	public String updateReplacementReplace(String mapList){
		return  mSurfaceService.updateReplacementReplace(mapList);
		
	}
	@RequestMapping("/updateEquipmentRepair")
	@ResponseBody
	public String updateEquipmentRepair(String mapList){
		return  mSurfaceService.updateEquipmentRepair(mapList);
		
	}
	@RequestMapping("/updateDetailDailyCheck")
	@ResponseBody
	public String updateDetailDailyCheck(String GUID,String STATUS){
		if(null != GUID && null != STATUS){
			return  mSurfaceService.updateDetailDailyCheck(GUID,STATUS);
		}else{
			return null;
		}
		
		
	}
}
